<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>{% block title %}Klein{% endblock %}</title>
    {% load staticfiles %}
    {% load url from future %}
    <link media="screen" href="{% static 'bootstrap/css/bootstrap.css' %}" rel="stylesheet"/>
    <link rel="Bookmark" href="{% static 'img/bbs/klein_favicon.ico' %}">
    <link rel="Shortcut Icon" href="{% static 'img/bbs/klein_favicon.ico' %}"/>
    {% block head_css %}{% endblock %}
    <!--[if lt IE 9]>
        <script src="{% static 'js/ieonly/html5shiv.js.js' %}">
        <script src="{% static 'js/ieonly/respond.js' %}">
    <![endif]-->

    <style>
        body {
            padding-top: 70px;
            padding-bottom: 70px;
            font-family: "Helvetica Neue", Helvetica, 'Microsoft Yahei', 'Hiragino Sans GB',
            'WenQuanYi Micro Hei', Tahoma, Arial, sans-serif;
        }

    </style>

</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{% url 'index' %}">Klein</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="nav_index"><a href="{% url 'index' %}">首页<span class="sr-only">(current)</span></a></li>
                <li class="nav_topic"><a href="{% url 'topic_create' %}">发布主题</a></li>
{#                <li class="nav_"><a href="#">版块列表</a></li>#}
                <li class="nav_movie_show"><a href="#">展示</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {% if user.is_authenticated %}
                    <li class="dropdown nav_user">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expanded="false">{{ user.username }} <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="{% url 'login' %}">重新登陆</a></li>
                            <li><a href="#">更换密码</a></li>
{#                            <li><a href="/user_detail/{{ user.id }}">个人资料</a></li>#}
                            <li><a href="{% url 'userinfo' %}">个人资料</a></li>
                            <li><a href="{% url 'message_list' %}">站内信</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="{% url 'logout' %}">登出</a></li>
                        </ul>
                    </li>
                {% else %}
                    <li class="nav_user"><a href="{% url 'login' %}">登陆/注册</a></li>
                {% endif %}
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>
{% block nav %}{% endblock %}
{% block body %}{% endblock %}
<script src="{% static 'js/jquery-1.9.1.min.js' %}"></script>
<script src="{% static 'bootstrap/js/bootstrap.js' %}"></script>
{% block foot_js %}{% endblock %}

</body>
</html>